package org.example.service;

import org.example.spring.Autowired;
import org.example.spring.BeanNameAware;
import org.example.spring.Component;
import org.example.spring.InitiallizingBean;

@Component("userService")
public class UserService implements BeanNameAware,InitiallizingBean{
    
    @Autowired
    private OrderService orderService;

    public void test(){
        System.out.println("userService print test");
    }
    public void test1(){
        System.out.println("orderService:"+orderService);
    }
    @Override
    public void setBeanName(String beanName) {
        
    }
    @Override
    public void afterPropertiesSet() {
        System.out.println("ddddddddsa");        
    }
}
